package com.wondream.myframework.heima_concurrent;

/**
 * 第一种创建线程的方法-继承Thread类
 */
public class _001_Thread_Extends_Thread {
    public static void main(String[] args) {
        Thread var1 = new Thread(){
            @Override
            public void run() {
                System.out.println("第一种创建线程的方法-继承Thread类");
            }
        };
        var1.setName("thread1");
        var1.start();
    }
}
